<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>

<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">请输入正确的信息</h3>
	</div>
	<div class="panel-body">
		<f:form action="${param.action}" method="${param.method}" id="account"
			cssClass="form-horizontal" modelAttribute="account">
			<f:hidden path="id"/>
			<div class="form-group">
				<f:label path="name" cssClass="col-md-2 control-label">账户名：</f:label>
				<div class="col-md-10">
					<f:input path="name" cssClass="form-control" placeholder="名字长度介于2-20之间"/>
				</div>
			</div>
			<div class="form-group">
				<f:label path="email" cssClass="col-md-2 control-label">邮箱：</f:label>
				<div class="col-md-10">
					<f:input path="email" cssClass="form-control" type="email" placeholder="暂时部支持Gmail邮箱" />
				</div>
			</div>
            <div class="form-group">
                <f:label path="balance" cssClass="col-md-2 control-label">金额：</f:label>
                <div class="col-md-10">
                    <f:input path="balance" cssClass="form-control" cssErrorClass="has-error" type="number" required="required" placeholder="可以保留两位小数点"/>
                </div>
            </div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">${param.value}</button>
				</div>
			</div>
		</f:form>
	</div>
	<div class="panel-footer"></div>
</div>

<!-- 
<f:form action="${param.action}" method="${param.method}" id="account">
    <p>
        <label for="name">账户名：</label>
        <input type="text" id="name" name="name" value="${account.name}" required="required" />
    </p>
    <p>
        <label for="email">邮箱：</label>
        <input type="email" id="email" name="email" value="${account.email}" required="required" />
    </p>
    <p>
        <label for="balance">金额：</label>
        <input type="number" id="balance" name="balance" value="${account.balance}" required="required" />
    </p>
    <p>
        <input type="hidden" value="${account.id}" name="id" id="id" />
    </p>
    <p>
        <input type="submit" value="${param.value}" />
    </p>
</f:form>
 -->
